from django.conf import settings
import hashlib


# 密码加密
def pwd_sha256(password):
    # 加盐
    m = hashlib.sha256(settings.ZEUS_SALT.encode('utf-8'))
    # 塞密码
    m.update(password.encode('utf-8'))

    return m.hexdigest()
